import http from "../request.js";
// let url = "/admin/vip/";
// 列表接口
export function selectOnlineVipCardListAPI(data) {
  return http.request({
    url: "/admin/vip/selectOnlineVipCardList",
    method: "post",
    data,
  });
}
//创建VIP卡
export function insertVipCardTempAPI(data) {
  return http.request({
    url: "/admin/vip/insertVipCardTemp",
    method: "post",
    data,
  });
}
//服务项目列表
export function selectServicesByParentIdAndNameAPI(data) {
  return http.request({
    url: "admin/vip/selectServicesByParentIdAndName",
    method: "post",
    data,
  });
}
//审核查询的列表
export function selectVIPCardListAPI(data) {
  return http.request({
    url: "/admin/vip/selectVIPCardList",
    method: "post",
    data,
  });
}
// 根据id查看VIP卡审核详情
export function selectVipCardTempByIdAPI(data) {
  return http.request({
    url: "/admin/vip/selectVipCardTempById",
    params: data,
  });
}
//编辑
export function updateVipCardAPI(data) {
  return http.request({
    url: "/admin/vip/updateVipCard",
    method: "post",
    data,
  });
}
//根据vip卡编号查询vip卡列表
export function selectUserCardByNumberAPI(data) {
  return http.request({
    url: "/admin/vip/selectUserCardByNumber",
    method: "post",
    data,
  });
}
//会员卡冻结
export function updateUserCardStatusAPI(data) {
  return http.request({
    url: "/admin/vip/updateUserCardStatus",
    params: data,
  });
}
//导出
export function deriveRedeemCodeAPI(data) {
  return http.request({
    url: "/admin/vip/deriveRedeemCode",
    method: "post",
    data,
  });
}
//审核VIP卡
export function updateVIPCardTempStatusAPI(data) {
  return http.request({
    url: "/admin/vip/updateVIPCardTempStatus",
    params: data,
  });
}
///admin/vip/selectCardById根据id查询已上线会员卡详情
export function selectCardByIdAPI(data) {
  return http.request({
    url: "/admin/vip/selectCardById",
    params: data,
  });
}
